package com.ruoyi.medical.doctor.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医师信息对象 sys_doctor
 * 
 * @author wad
 * @date 2022-04-06
 */
public class Doctor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 医师id */
    private Long doctorId;

    /** 医师姓名 */
    @Excel(name = "医师姓名")
    private String doctorName;

    /** 性别(0男 1女) */
    @Excel(name = "性别(0男 1女)")
    private String doctorSex;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 现居住地址 */
    @Excel(name = "现居住地址")
    private String currentAddress;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String currentNative;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 学历(0专科 1本科 2硕士 3博士) */
    @Excel(name = "学历(0专科 1本科 2硕士 3博士)")
    private String cultureAgree;

    /** 参加工作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "参加工作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enterTime;

    /** 工作年限 */
    @Excel(name = "工作年限")
    private Long jobTime;

    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setDoctorName(String doctorName) 
    {
        this.doctorName = doctorName;
    }

    public String getDoctorName() 
    {
        return doctorName;
    }
    public void setDoctorSex(String doctorSex) 
    {
        this.doctorSex = doctorSex;
    }

    public String getDoctorSex() 
    {
        return doctorSex;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }
    public void setCurrentAddress(String currentAddress) 
    {
        this.currentAddress = currentAddress;
    }

    public String getCurrentAddress() 
    {
        return currentAddress;
    }
    public void setCurrentNative(String currentNative)
    {
        this.currentNative = currentNative;
    }

    public String getCurrentNative()
    {
        return currentNative;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCultureAgree(String cultureAgree) 
    {
        this.cultureAgree = cultureAgree;
    }

    public String getCultureAgree() 
    {
        return cultureAgree;
    }
    public void setEnterTime(Date enterTime) 
    {
        this.enterTime = enterTime;
    }

    public Date getEnterTime() 
    {
        return enterTime;
    }
    public void setJobTime(Long jobTime) 
    {
        this.jobTime = jobTime;
    }

    public Long getJobTime() 
    {
        return jobTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("doctorId", getDoctorId())
            .append("doctorName", getDoctorName())
            .append("doctorSex", getDoctorSex())
            .append("idCard", getIdCard())
            .append("age", getAge())
            .append("birthDate", getBirthDate())
            .append("currentAddress", getCurrentAddress())
            .append("currentNative", getCurrentNative())
            .append("phone", getPhone())
            .append("cultureAgree", getCultureAgree())
            .append("enterTime", getEnterTime())
            .append("jobTime", getJobTime())
            .toString();
    }
}
